package com.example.demo.mapper;

import com.example.demo.entity.ScAttendanceType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.ScRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
* @author Lenovo
* @description 针对表【sc_attendance_type】的数据库操作Mapper
* @createDate 2023-12-15 14:08:15
* @Entity com.example.demo.entity.ScAttendanceType
*/
@Mapper
@Repository
public interface ScAttendanceTypeMapper extends BaseMapper<ScAttendanceType> {
    @Select("SELECT * FROM sc_attendance_type WHERE `name` = #{name}")
    ScAttendanceType getByName(String name);
}




